package com.szx.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.szx.usercenter.domain.SysRole;
import com.szx.usercenter.domain.SysUser;
import com.szx.usercenter.domain.SysUserRole;
import com.szx.usercenter.util.Response;

import java.util.List;

/**
 * @author 25019
 * @description 针对表【sys_user_role(用户和角色关联表)】的数据库操作Service
 * @createDate 2024-05-19 08:31:02
 */
public interface SysUserRoleService extends IService<SysUserRole> {

    Response addUserRole(List<Long> roleIds, Long userId);

    void setUserDefaultRole(SysUser sysUser);

    List<SysRole> getUserRoleList(Long userId);

    void removeUserRoles(Long userId);
}
